﻿using GameEntitySystem;
using Mekiasm.Interface;
using TemplatesDatabase;

namespace Mekiasm
{
    public class ComponentElectrolyzer : ComponentEnergyMachine
    {
        public override IDynamicCraft CraftDevice => MekCraftingRecipe.FindCraftDevice(typeof(MekElectrolyzer));

        public override bool CheckResultCapacity => true;

        public override int CraftPowerUse => 32;

        public ComponentElectrolyzer()
        {
            AllowChangeItemMode = false;
            AllowChangeGasMode = false;
            AllowChangeFluidMode = true;
            AllowChangeElectricMode = false;

        }

        public override bool CanAcceptFuel(int slotIndex, int fuelValue)
        {
            if (slotIndex == 0 && fuelValue == Game.WaterBlock.Index) return true;
            return false;
        }
    }
}
